package com.wqr.provider.service;

import com.wqr.api.pojo.User;
import com.wqr.api.service.IUserService;
import org.apache.dubbo.config.annotation.Service;

/**
 * @author LTX
 */
//@Service(version = "1.0.0", loadbalance = "roundrobin", filter = {"love"})
@Service(version = "1.0.0", filter = {"love", "dubboLogFilter"})
//@Service(version = "1.0.0")
public class UserServiceImpl implements IUserService {
    @Override
    public User selectUserById(Integer id) {
        User user = new User();
        user.setUserId(id);
        user.setUserName("张三");
        System.out.println("接收到客户端id:" + id);
        return user;
    }
}
